package myJs.myPkg.highcharts

import myJs.myPkg.jquery.JQuery
import myJs.myPkg.jsext._

import scala.scalajs.js
import scala.language.implicitConversions
import scala.scalajs.js.JSConverters._
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.annotation.JSImport.Namespace

/**
 * Created by yz on 2019/3/14
 */

object MapNavigation extends MapNavigationBuilder(noOpts)

class MapNavigationBuilder(val dict: OptMap) extends JSOptionBuilder[MapNavigation, MapNavigationBuilder](new MapNavigationBuilder(_)) {

  def enabled(v: Boolean) = jsOpt("enabled", v)

  def enableMouseWheelZoom(v: Boolean) = jsOpt("enableMouseWheelZoom", v)

  def buttonOptions(v: ButtonOptions) = jsOpt("buttonOptions", v)

}

trait MapNavigation extends js.Object {

}

object ButtonOptions extends ButtonOptionsBuilder(noOpts)

class ButtonOptionsBuilder(val dict: OptMap) extends JSOptionBuilder[ButtonOptions, ButtonOptionsBuilder](new ButtonOptionsBuilder(_)) {

  def verticalAlign(v: String) = jsOpt("verticalAlign", v)

}

trait ButtonOptions extends js.Object {

}
